﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
using DAL;

namespace BLL
{
 public    class PowerGroupBLL
    {
     PowerGroupDAL dal = new PowerGroupDAL();
     /// <summary>
     /// 权限组表的显示
     /// </summary>
     /// <returns></returns>
     public List<PowerGroup> PowerGroup_Show()
     {
         return dal.PowerGroup_Show();
     }
     /// <summary>
     /// 删除权限组表信息
     /// </summary>
     /// <param name="id"></param>
     /// <returns></returns>
     public int PowerGroup_Delete(int id)
     {
         return dal.PowerGroup_Delete(id);
     }
     /// <summary>
     /// 添加权限组表信息
     /// </summary>
     /// <param name="p"></param>
     /// <returns></returns>
     public int PowerGroup_Add(PowerGroup p)
     {
         return dal.PowerGroup_Add(p);
     }
     /// <summary>
     /// 显示权限组表详细信息
     /// </summary>
     /// <param name="id"></param>
     /// <returns></returns>
     public PowerGroup PowerGroup_Content(int id)
     {
         return dal.PowerGroup_Content(id);
     }
     /// <summary>
     /// 修改权限组表信息
     /// </summary>
     /// <param name="data"></param>
     /// <returns></returns>
     public int PowerGroup_Edit(PowerGroup data)
     {
         return dal.PowerGroup_Edit(data);
     }
    }
}
